package com.enjoyor.soa.traffic.restt.tpcms.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.enjoyor.soa.traffic.restt.tpcms.dubbo.invoke.UbmsDeptBayonetServiceInvoke;

@Component
public class AppServletRequestListener implements CommandLineRunner {
    @Autowired
    private UbmsDeptBayonetServiceInvoke ubmsDeptService;

    @Override
    public void run(String... args) throws Exception {
        // TODO Auto-generated method stub
        try {
            // 生成卡口点位树
            ubmsDeptService.getDeptBayonetTree();
            // 最大通行证编号存储redis
            // String maxPassCardId = passCardConsumeService.getMaxPassCardId();
            // redisTool.set(maxPassId, maxPassCardId);
        } catch (Exception e) {
            // throw e;
            return;
        }
    }
}
